<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改faq问题')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-faq-edit" th:object="${sysOaFaq}">
            <input name="faqNo" th:field="*{faqNo}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">所属产品：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_faq_type')}">
                        <input type="radio" th:id="${'faqType_' + dict.dictCode}" name="faqType" th:value="${dict.dictValue}" th:field="*{faqType}">
                        <label th:for="${'faqType_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">问题标题：</label>
                <div class="col-sm-8">
                    <input name="faqTitle" th:field="*{faqTitle}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/faq";
        $("#form-faq-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-faq-edit').serialize());
            }
        }
    </script>
</body>
</html>